Hard to advise without seeing any code or anything...
Sometimes in Xpages... a single value gets returned as a string... and multiple values get returned as an Array or likely a Vector. I'm just guessing that this COULD be your problem. Not sure though.
Dave